package com.ityj.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
@Component
public interface DictFeignClient {

    // 根据parent_id 和 value查询出对应的name
    @GetMapping(path = "/admin/cmn/dict/getDictName/{value}/{dictCode}")
    String getDictName(@PathVariable("value") String value, @PathVariable("dictCode") String dictCode);

    // 查省市区 不需要dictCode
    @GetMapping(path = "/admin/cmn/dict/getDictName/{value}")
    String getDictName(@PathVariable("value") String value);
}
